##$Id: functions.py 105 2009-02-11 17:10:17Z wroniasty $

__revision__ = "$Revision: 105 $"
from functools import partial

#def partial (func, *args, **kwargs):
#    def __fobj(*cargs, **kwcargs):
#        call_args = args + cargs
#        kwcargs.update (kwargs)        
#        return func(*call_args, **kwcargs)
#    #__fobj.__name__ = "partial " + func.__name__ + "(" + ",".join(map (str, args)) + ")"
#    #__fobj.____ = "Partially applied " + func.__name__ + "\n" + func.__doc__
#    return __fobj